package com.scut.dispatching_server.tool;

import java.util.ArrayList;
import java.util.concurrent.Callable;

/**
 * ResponseTimePostThread
 *
 * @author yuxi
 * @date 2019-03-04
 */
public class ResponseTimePostThread implements Callable<ArrayList<float[]>> {
    private ArrayList<String> orderIds;
    private String driverId;
    private int driverIndex;
    public ResponseTimePostThread(ArrayList<String> orderIds, String driverId, int driverIndex){
        this.orderIds = orderIds;
        this.driverId = driverId;
        this.driverIndex = driverIndex;
    }
    @Override
    public ArrayList<float[]> call() throws Exception{
        ResponseTimePredictor predictor = new ResponseTimePredictor();
        return predictor.getProba(orderIds, driverId, driverIndex);
    }
}
